function created(res){
	//require(['echarts'],function (echarts) {
	var num = 1;
	var myChart = echarts.init(document.getElementById('mainstores'));
	var option = {
		geo: {
			map: 'china',
			roam: false, // 是否开启鼠标缩放和平移漫游。默认不开启。如果只想要开启缩放或者平移，可以设置成 'scale' 或者 'move'。设置成 true 为都开启
			aspectScale: 0.75,
			zoom: 1,
			label: {
				normal: {
					show: true,
					textStyle: {
						color: '#000',
						fontSize:14,
					}
				},
				emphasis: { // 对应的鼠标悬浮效果
					show: false,
					textStyle: {
						color: "#000"
					}
				},
				
			},
			regions: [
				{
					"name": "南海诸岛",
					"value": 0, 
					"itemStyle":{ "normal":{"opacity":0}} ,
				}
			],
			itemStyle: {
				normal: {
					areaColor: '#f8f8f8',
					borderColor: '#cecece'
				},
				emphasis: {
					borderWidth: 0,
					borderColor: '#c9b296',
					areaColor: "#c9b296",
					shadowColor: 'rgba(0, 0, 0, 0.5)'
				}
			}
		},
	};
	myChart.setOption(option);
	myChart.on('click', function (params) {
		var area = params.name;
		$.ajax({
			 type: "GET",
			 url: "/home/index/getArea.html",
			 data: {area:area},
			 dataType: "json",
			 success: function(data){
				 console.log(data);
				 if(data.flag == 1){
					 console.log(data.url);
					 window.open(data.url,'_self');
				 }else{
				 	layer.msg("暂无数据",{time:1000,icon:2});
				 }
			 }		 
		});           
		
	});
	$(".zoom-btn .add").on("click",function(){
		num += 0.25;
		myChart.setOption({geo:{
			roam: true,
			zoom:num,
		}});
		
	})
	$(".zoom-btn .reduction").on("click",function(){
		num -= 0.25;
		myChart.setOption({geo:{
			roam: false,
			zoom:num,
		}});
	})
	//});
}